#include <unittest++/UnitTest++.h>

#include "timeoperations.h"

#include <vector>
#include <string>

#ifdef WIN32
    #include <Windows.h>
#endif

using std::string;
using std::vector;

SUITE(TimeOperationsTest)
{
    TEST(TestGetTime)
    {
    	uint64 time1 = TimeOperations::getTimeInMilliSeconds();
#ifdef WIN32
		Sleep(10);
#else
        usleep(1000);
#endif
		uint64 time2 = TimeOperations::getTimeInMilliSeconds();
		
		CHECK(time1 < time2);
    }
};
